.class public Lcom/glympse/android/glympse/ViewSendGlympse$OnClickMessages;
.super Ljava/lang/Object;
.source "ViewSendGlympse.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewSendGlympse;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "OnClickMessages"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewSendGlympse;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympse/ViewSendGlympse;)V
    .locals 0
    .parameter

    .prologue
    .line 1206
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickMessages;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6
    .parameter "oView"

    .prologue
    const/4 v5, 0x1

    .line 1211
    const-string v3, "Messages"

    invoke-static {v3}, Lcom/glympse/android/glympse/DlgBase;->IsCreated(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 1213
    new-instance v0, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;

    iget-object v3, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickMessages;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    iget-object v4, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickMessages;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v4}, Lcom/glympse/android/glympse/ViewSendGlympse;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v0, v3, v4}, Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;-><init>(Lcom/glympse/android/glympse/ViewSendGlympse;Landroid/content/Context;)V

    .line 1214
    .local v0, oAdapter:Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;
    new-instance v1, Lcom/glympse/android/glympse/DlgList;

    iget-object v3, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnClickMessages;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v3}, Lcom/glympse/android/glympse/ViewSendGlympse;->getContext()Landroid/content/Context;

    move-result-object v3

    const-string v4, "Messages"

    invoke-direct {v1, v3, v4}, Lcom/glympse/android/glympse/DlgList;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 1215
    .local v1, oDlgList:Lcom/glympse/android/glympse/DlgList;
    const v3, 0x7f0200a9

    invoke-virtual {v1, v3}, Lcom/glympse/android/glympse/DlgList;->SetTitleIcon(I)V

    .line 1216
    const v3, 0x7f0a002a

    invoke-virtual {v1, v3}, Lcom/glympse/android/glympse/DlgList;->SetTitleText(I)V

    .line 1217
    invoke-virtual {v1, v0, v0, v5}, Lcom/glympse/android/glympse/DlgList;->SetListAdapter(Landroid/widget/ListAdapter;Landroid/widget/AdapterView$OnItemClickListener;Z)Landroid/widget/ListView;

    move-result-object v2

    .line 1220
    .local v2, oListView:Landroid/widget/ListView;
    invoke-virtual {v2, v5}, Landroid/widget/ListView;->setFastScrollEnabled(Z)V

    .line 1222
    sget-object v3, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v3, v1}, Lcom/glympse/android/glympse/Glympse;->QueueDialog(Landroid/app/Dialog;)Z

    .line 1224
    .end local v0           #oAdapter:Lcom/glympse/android/glympse/ViewSendGlympse$MessageAdapter;
    .end local v1           #oDlgList:Lcom/glympse/android/glympse/DlgList;
    .end local v2           #oListView:Landroid/widget/ListView;
    :cond_0
    return-void
.end method
